﻿using SqlSugar;

namespace Lanbt.Core.Entity.EntityDB
{
    public class EntityBase
    {
        public EntityBase()
        {
            ID = Guid.NewGuid().ToString();
            IsDelete = false;
        }

        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey =true)]
        public string ID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public string? CreatedId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModificaTime { get; set; }

        /// <summary>
        /// 修改人ID
        /// </summary>
        public string? ModifiedId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
